package de.Niklas.Laser.util.breakEvent;

import org.bukkit.entity.Entity;
import org.bukkit.entity.Player;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;

public final class LaserDamageEvent extends Event {
    private static final HandlerList handlers;
    private final Player damager;
    private final Entity damaged;

    static {
        handlers = new HandlerList();
    }

    public LaserDamageEvent(final Player player, final Entity entity) {
        this.damager = player;
        this.damaged = entity;
    }

    public Player getPlayer() {
        return this.damager;
    }

    public Entity getDamaged() {
        return this.damaged;
    }

    public HandlerList getHandlers() {
        return LaserDamageEvent.handlers;
    }

    public static HandlerList getHandlerList() {
        return LaserDamageEvent.handlers;
    }
}
